package com.atqinke.designpattern.structuraltype.adapter.classadapter;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.DesignPattern.structuraltype.adapter.classadapter
 * @Author: NieHk
 * @CreateTime: 2022-08-26  16:23
 * @Description: 定义适配器类（SD兼容TF）
 * @Version: 1.0
 */
public class SDAdapterTF extends TFCardImpl implements SDCard{
    public String readSD() {
        System.out.println("adapter read tf card ");
        return readTF();
    }

    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        writeTF(msg);
    }
}
